package dao

import (
	"github.com/gogf/gf/database/gdb"
	"github.com/gogf/gf/frame/g"
)

type b_sbt_hub_ota struct {
}

var B_sbt_hub_ota = b_sbt_hub_ota{}

func (a *b_sbt_hub_ota) GetList(where ...string) (list gdb.List, err error) {
	db := g.DB(g.Cfg().GetString("custom.db_name"))
	model := db.Model("b_sbt_hub_ota")
	if len(where) == 0 {
	} else {
		model = model.Where(where[0])
	}
	res, err := model.All()
	return res.List(), err
}
